package com.le.tester.javaThink.fifth.chapter13_FuncProgramming;

import java.util.function.IntSupplier;

/**
 * createTime：2021/8/6 14:16
 * description：访问对象函数和方法变量
 */
public class Closure1 {
    private int i;

    IntSupplier makeFun(int x) {
        return () -> x + i++;
    }
}
